package com;

import com.itheima.domain.Student;

import java.util.ArrayList;

public class StudentDao {
    private static ArrayList<Student> arrli=new ArrayList<>();
    public boolean addstu(Student stu){
        for (int i = 0; i < arrli.size(); i++) {
            if (arrli.get(i).equals(null)){
                arrli.add(i,stu);
                break;
            }
        }
        return true;
    }
    public ArrayList<Student> getArrli(){
        return arrli;
    }
}
